package com.bw.launcher.splash

import com.bw.common.mvi.BaseRespository
import com.bw.launcher.splash.entity.LockEntity
import com.bw.network.BaseEntity
import com.bw.network.HttpType
import com.bw.network.NetWorkFactory
import kotlinx.coroutines.flow.Flow

class SplashRepo : BaseRespository() {

    //请求白名单
    fun requestWhite():Flow<BaseEntity>{
        return NetWorkFactory.factory(HttpType.NONE)
            .create(ApiService::class.java)
            .requestWhite()
    }
    //请求是否锁屏
    fun requestLock():Flow<BaseEntity>{
        return NetWorkFactory.factory(HttpType.NONE)
            .create(ApiService::class.java)
            .requestLock()
    }

}